package com.bjtu.transactionclient.controller;

import com.bjtu.transactionclient.api.api.JournalPaperService;
import com.bjtu.transactionclient.api.vo.request.SyncJournalPaperRequest;
import com.bjtu.transactionclient.base.result.Result;
import com.bjtu.transactionclient.domain.JournalPaperChinese;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author caiyuli
 * @date 2020/4/23 11:41 上午
 */


@RestController
@Api(description = "关于JournalPaper的全部接口")
@RequestMapping("/journal-paper")
public class JournalPaperController {


    @Autowired
    private JournalPaperService journalPaperService;


    @RequestMapping(value = "/sync-add", method = RequestMethod.POST)
    @ApiOperation("期刊析出同步")
    public Result syncJournalPaper(@RequestBody @Validated SyncJournalPaperRequest request){
        Result result = journalPaperService.syncJournalPaper(request);
        return result;
    }



}
